home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl720 / sst115j.lzh / VDEMO.C < prev    next >
C/C++ Source or Header  |  1992-08-01  |  694b  |  26 lines

  1. /* ------------------------------------------------------------------------ */
  2. /*                       demo of low level video stuff                      */
  3. /* ------------------------------------------------------------------------ */
  4. #include <stdio.h>
  5. #include <dos.h>
  6. #include <conio.h>
  7. #include <stdlib.h>
  8.  
  9. #include "sstvid.h"
  10. #include "sstwin.h"
  11.  
  12.  
  13. void main(void)
  14.  
  15. {
  16.   if (vpushscreen() != 0) {
  17.     printf("Not enought memory to save screen. \n");
  18.     exit(-1);
  19.   }
  20.   vfill(0,0,25,80,176,26);
  21.   vputfc(2,CLR(GREEN,BLUE,DIM),"The entire screen was just filled");
  22.   vputfc(24,CLR(GREEN,YELLOW,DIM),"Press any key to restore screen");
  23.   kgetch();
  24.   vpopscreen();
  25. }
  26.